<template>
  <div class="online-log-analysis">
    <!-- 标题栏 -->
    <div class="title-bar">
      <div class="title-left">
        <h2>在线日志分析</h2>
        <n-tag type="info" size="small" style="margin-left: 12px;">
          功能开发中
        </n-tag>
      </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
      <n-empty description="在线日志分析功能正在开发中">
        <template #extra>
          <n-button size="small" disabled>
            敬请期待
          </n-button>
        </template>
      </n-empty>
    </div>
  </div>
</template>

<script setup lang="ts">
import { NTag, NEmpty, NButton } from 'naive-ui'
</script>

<style scoped>
.online-log-analysis {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.title-left {
  display: flex;
  align-items: center;
}

.title-left h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .title-bar {
    padding: 16px 20px;
  }
  
  .title-left h2 {
    font-size: 24px;
  }
  
  .main-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .title-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}</style>